###User Defined Function###
_SQLite_Close

###Description###
Close an open database.

###Syntax###
#include <SQLite.au3>
_SQLite_Close([$hDB])


###Parameters###
@@ParamTable@@
$hDB
	[optional] Database handle.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Returns $SQLITE_OK.
Failure:	Return value can be compared against $SQLITE_* constants.
@error:	-1 - SQLite reported an error (Check Return value)
	1 - Error calling SQLite API 'sqlite3_close'
	2 - Call prevented by SafeMode
@@End@@

###Remarks###
It waits for SQLite &lt;&gt; $SQLITE_BUSY until 'global Timeout' has elapsed.
If no database handle is given, the last opened database will be closed.
Prior to calling _SQLite_Close, the application must invoke _SQLite_QueryFinalize for each query explicitely left unfinalized.

###Related###
_SQLite_Open

###Example###
@@IncludeExample@@